package wrongWordsHandling;

import Data.SuggestedWord;
import Data.wrongWordsData;

public class Replace {
	public String replace(String article, int[] choice){
		int i=0;
		for(String wordWord: wrongWordsData.getWrongWord()){
				article = article.replaceFirst(wordWord, SuggestedWord.getWordList().get(choice[i]));
				i++;
		}

		return article;
	}
}
